<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>
        {% block title %}{% endblock %}
    </title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <script>
        window.onload = function () {
            var url = "http://127.0.0.1:8000";
            var request = new XMLHttpRequest();
            request.open("GET", url);
            request.send(null);
        }
        function back() {
            history.go("-1");
        }
    </script>
</head>
<body>
    <div class="container-fluid">
        <!-- {% include 'header.html' %} -->
        {% include 'navbar.html' %}
        <div class="row">
            <div class="col-md-3">
                <div class="card">
                    <div class="card-header">
                        ssblog官方博客
                    </div>
                    <div class="card-body">
                        <ul class="list-group">
                            <li class="list-group-item"><a href="/">首页</a></li>
                            <li class="list-group-item"><a href="/hot_articles/">热门文章</a></li>
                            <li class="list-group-item"><a href="#kind">分类专栏</a></li>
                            <li class="list-group-item"><a href="#">最新评论</a></li>
                            <li class="list-group-item"><a href="/new_articles">最新文章</a></li>
                            <li class="list-group-item"><a href="/add_article">添加文章</a></li>
                            <li class="list-group-item"><a href="/contract">私信</a></li>
                        </ul>
                    </div>
                </div>
                {% block hotArticle %}{% endblock %}
                {% block archives %}{% endblock %}
                {% block kinds %}{% endblock %}
            </div>
            <div class="col-md-9">
                <div class="card">
                    <div class="card-header">
                        {% block header %}{% endblock %}
                    </div>
                    <div class="card-body">
                        {% block content %}{% endblock %}
                    </div>
                    <div class="card-footer">
                        {% include 'footer.html' %}
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>